
#include "member_BTextFormat.h"

using namespace BWE;

member_BTextFormat::member_BTextFormat(BTextFormat* textEdit)
{
	boss = textEdit;
}
member_BTextFormat::~member_BTextFormat()
{

}

void member_BTextFormat::setTextEdit(BTextEdit* newEdit)
{
	if (textEdit != newEdit)
	{
		if (textEdit)
		{
			boss->detached(textEdit);
			boss->emit(Signal_Detached, BValue(textEdit, true));
		}
		textEdit = newEdit;
		if (textEdit)
		{
			boss->attached(textEdit);
			boss->emit(Signal_Attached, BValue(textEdit, true));
		}
	}
}
